#include "stdafx.h"
#include "tabtenn1.h"
#include <cstring>
#include <iostream>

using namespace std;

TableTennisPlayer_1::TableTennisPlayer_1(const char *fn,const char *ln,bool ht)
{
	strncpy(firstname,fn,LIM -1);
	firstname[LIM]='\0';
	strncpy(lastname,ln,LIM-1);
	lastname[LIM]='\0';
	hasTable= ht;
}
void TableTennisPlayer_1::Name()const
{
	cout << lastname << ", " <<firstname << endl;
}
RatedPlayer_1::RatedPlayer_1(unsigned int r,const char* fn,
						 const char *ln,bool ht):TableTennisPlayer_1(fn,ln,ht)
{
	rating = r;
}
RatedPlayer_1::RatedPlayer_1(const TableTennisPlayer_1 &tp,unsigned int r):
	TableTennisPlayer_1(tp),rating(r)
{}